package com.example.module_notice.api

import com.example.lib_net.BaseResponse
import com.example.module_notice.ui.model.AnnouncementEntity
import com.example.module_notice.ui.model.NoticeDetailEntity
import retrofit2.http.GET
import retrofit2.http.Path
import retrofit2.http.Query


interface NoticeApiService {

    @GET("/api/announcements/getAnnouncementByUserId")
    suspend fun getAnnouncementByUserId(@Query("userId") userId : Int): BaseResponse<AnnouncementEntity>

    @GET("/api/announcements/{id}")
    suspend fun getAnnouncementsDetail(@Path("id") id : Int): BaseResponse<NoticeDetailEntity>

}